<?php
if(!check_manager_login()) exit('无权查看，请登录!');
require_once(MODEL_PATH.DS.'AttributeValue.php');
$AttributeValue = new AttributeValue();
$attr_id = isset($_GET['attr_id'])?(int)$_GET['attr_id']:'';
$attr_value_id = isset($_GET['attr_value_id'])?(int)$_GET['attr_value_id']:'';
$result = $AttributeValue->deleteAttrValue($attr_value_id);
if($result){
	redirect('index.php?mod=attributeValue&act=list&attr_id='.$attr_id,'删除成功！');
}else{
	redirect('index.php?mod=attributeValue&act=list&attr_id='.$attr_id,'删除失败！');
}
?>